package com.android.calldelay;

 

import com.android.calldelay.R;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;

 

public class DemoActivity extends Activity {
	private EditText eText;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
	 	super.onCreate(savedInstanceState);
	 	setContentView(R.layout.layout_demo);
	 	setUpView();
	}

	private void setUpView() {
		Button buttonContact = (Button)findViewById(R.id.button);
	  eText = (EditText)findViewById(R.id.editText);
		  buttonContact.setOnClickListener(new  View.OnClickListener() {
			
			@Override
			public void onClick(View v) {
			finish();
				
			}
		});
		  
	}
	@Override
	public void finish() {
		Intent data = new Intent();
	    // Return some hard-coded values
	    data.putExtra("returnKey1", eText.getText().toString());
	    data.putExtra("returnKey2", "You could be better then you are. ");
	    setResult(RESULT_OK, data);
		super.finish();
	}

}
